<%@page import="cn.edu.pku.wxlib.adminuser.model.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>

<rapid:override name="head">
	<title>Adminuser编辑</title>
</rapid:override>

<rapid:override name="content">
	<form:form method="put" action="${ctx}/adminuser/${adminuser.adminId }/save" modelAttribute="adminuser">
		<table class="formTable" width="80%" cellspacing=20px>
		<input type="hidden" id="adminId" name="adminId" value="${adminuser.adminId}"/>
	<tr>	
		<td class="tdLabel" style="font-size:20px">
			<span class="required">*</span>用户名:
		</td>		
		<td>
		<form:input style="font-size:20px" path="adminName" id="adminName" cssClass="required " maxlength="10" />
		<font color='red'><form:errors path="adminName"/></font>
		</td>
	</tr>	
		<form:input type="hidden" path="password" id="password" cssClass="required " maxlength="32" />
		<font color='red'><form:errors path="password"/></font>
	
	<tr>	
		<td style="font-size:20px" class="tdLabel">
			姓名:
		</td>		
		<td>
		<form:input style="font-size:20px" path="name" id="name" cssClass="" maxlength="32" />
		<font color='red'><form:errors path="name"/></font>
		</td>
	</tr>	
	
	<tr>	
		<td style="font-size:20px" class="tdLabel">
			出生年月:
		</td>		
		<td>
		<input style="font-size:20px" value="${adminuser.birthString}" onclick="WdatePicker({dateFmt:'<%=Adminuser.FORMAT_BIRTH%>'})" id="birthString" name="birthString"  maxlength="0" class="" />
		<font color='red'><form:errors path="birth"/></font>
		</td>
	</tr>	
	
	<tr>	
		<td style="font-size:20px" class="tdLabel">
			性别:
		</td>		
		<td>
		<form:input style="font-size:20px" path="gender" id="gender" cssClass="validate-integer max-value-2147483647" maxlength="10" />
		<font color='red'><form:errors path="gender"/></font>
		</td>
	</tr>	
	
	<tr>	
		<td style="font-size:20px" class="tdLabel">
			座机:
		</td>		
		<td>
		<form:input style="font-size:20px" path="tel" id="tel" cssClass="" maxlength="12" />
		<font color='red'><form:errors path="tel"/></font>
		</td>
	</tr>	
	
	<tr>	
		<td style="font-size:20px" class="tdLabel">
			手机:
		</td>		
		<td>
		<form:input style="font-size:20px" path="phone" id="phone" cssClass="" maxlength="11" />
		<font color='red'><form:errors path="phone"/></font>
		</td>
	</tr>	
	
	<tr>	
		<td style="font-size:20px" class="tdLabel">
			邮箱:
		</td>		
		<td>
		<form:input path="email" id="email" cssClass="validate-email" maxlength="64" style="font-size:20px"/>
		<font color='red'><form:errors path="email"/></font>
		</td>
	</tr>	
	
	<tr>	
		<td style="font-size:20px" class="tdLabel">
			创建时间:
		</td>		
		<td>
		<input style="font-size:20px" value="${adminuser.createTimeString}" onclick="WdatePicker({dateFmt:'<%=Adminuser.FORMAT_CREATE_TIME%>'})" id="createTimeString" name="createTimeString"  maxlength="0" class="" />
		<font color='red'><form:errors path="createTime"/></font>
		</td>
	</tr>	
	
		<form:input type="hidden" path="state" id="state" cssClass="validate-integer max-value-2147483647" maxlength="10" />
		<font color='red'><form:errors path="state"/></font>
	</tr>	
		</table>
		<input style="height: 30px;width:70px; font-size: 20px;background-color:#FF7F00" id="submitButton" name="submitButton" type="submit" value="提交" />
		<input style="height: 30px;width:70px; font-size: 20px;background-color:#FF7F00" type="button" value="返回" onclick="history.back();"/>
	</form:form>
	
	<script>		
		new Validation(document.forms[0],{onSubmit:true,onFormValidate : function(result,form) {
			var finalResult = result;
			
			//在这里添加自定义验证			
			return disableSubmit(finalResult,'submitButton');
		}});
	</script>
</rapid:override>

<%@ include file="base.jsp" %>